# -*- coding: utf-8 -*-
# copyright:   Copyright (c) 2017-2020 qa_tech Co., Ltd. All rights reserved.
# author:      YYT
# create_time: 2021/7/20  10:15
# description:

import os
import sys

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
CONFIG_FILE_NAME = 'application.conf'

def get_config_path():
    file_path = os.path.join(os.path.dirname(os.path.realpath(sys.executable)) + '/conf', CONFIG_FILE_NAME)
    if os.path.exists(file_path):
        return file_path
    else:
        return os.path.join(ROOT_DIR, 'conf/' + CONFIG_FILE_NAME)
